const Main = ()=>import ('views/Main/Main.vue')

const routes = [
    { 
    path: '/main', 
    component: Main,
    children: [
        { path: '',name: 'home', component: ()=>import("views/Main/childCmps/Home/Home.vue"),meta:{title:"首页"} },
        { path: 'article/:id',name: 'Article', 
            component: ()=>import("views/Main/childCmps/Article/Article.vue"),props:true,meta:{title:"文章"}},
        ]
    },
    { path: '/hero/:id',name: 'Hero',component: ()=>import("views/Hero/Hero.vue"),props:true,meta:{title:"英雄详情"} },
    { path: '', redirect: '/main' }
]

export default routes